﻿<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
	<?php $this->load->view('common/top', array('title' => 'SEWIKI - MODIFY A BOOK')); ?>
	<body>
<script src="<?=base_url() . 'static/js/jquery.validate.js'?>" type="text/javascript"></script>
<script type="text/javascript">
$().ready(function() {
	$("#create_book_form_entity").validate({
		rules: {
			bname: {
				required: true,
				minlength: 1
			}
		},
		messages: {
			bname: {
				required: "请输入图书名",
				minlength: "图书名至少包含一个字符"
			}
		}
	});
});
</script>
		<div id="container">
			<?php $this->load->view('common/header'); ?>
			<div id="content">
				<?php $this->load->view('common/menu'); ?>
				<div id="main">
					<div id="create_book_title" class="title">
						修改图书信息
					</div>
					<div id="create_book_form" class="text_form">
						<?php echo form_open('', array('id' => 'create_book_form_entity', 'style' => 'width:100%')); ?>
							<table width="100%">
								<tr>
									<td><?php echo form_label('图书名', 'bname');?></td>
									<td><?php echo form_input(array(
										'name'  => 'bname',
										'id'    => 'bname',
										'value' => $title,
										'style' => 'width:90%')); ?></td>
								</tr>
								<tr>
									<td><?php echo form_label('图书描述', 'bdesc'); ?></td>
									<td><?php echo form_textarea(array(
										'name'  => 'bdesc',
										'value' => $description,
										'style' => 'width:90%')); ?></td>
								</tr>
								<tr>
									<td colspan="2" style="text-align:center">
										<?php echo form_submit('modify', '提交') ?>
										<?php echo form_reset('reset', '重置') ?>
									</td>
								</tr>
							</table>
						<?php echo form_close(); ?>
					</div>
				</div>
			</div>
			<?php $this->load->view('common/footer'); ?>
		</div>
	</body>
</html>
